package com.yuan.springcloud.autoimport.configuration;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @author YouYuan
 * @version 1.0
 * @date 2020/3/26 1:31
 */
public class BeanImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata annotationMetadata) {
        // 将配置类返回给SpringBoot自动加载
        return new String[]{AutoImportBeanConfiguration.class.getName()};
    }
}
